package com.example.styinterface.interfaces;

import com.example.styinterface.utils.R;
import com.example.stymodel.model.Apple;

import java.io.IOException;

public interface IElasticSearchService {
    public R addIndex(String index) throws IOException;

    public R deleteIndex(String index) throws IOException;

    public R insertDocument(String index, Apple apple) throws IOException;


    public R deleteDocument(String index,Integer id) throws IOException;

    public R selectDocument(String index,String price) throws IOException;

}
